.data
v: .ascii "Cuento cuantas as hay."
.text
.global main
main:
	movl $0, %eax
	movl $0, %ecx
loop:
	cmpb $'.', v(%ecx)
	je end_loop
	cmpb $'a', v(%ecx)
	jne end_if
	incl %eax
end_if:
	incl %ecx
	jmp loop
end_loop:

	movl %eax, %ebx
	movl $1, %eax
	int $0x80

